package com.lb.undertow.controller;


import com.lb.undertow.pojo.Country;
import com.lb.undertow.service.CountryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liubin
 */
@RestController
public class TestController {

    @Autowired
    private CountryService countryService;

    @PostMapping("add")
    public void  add(){
        countryService.add(new Country(0,"","",""));
    }

}
